<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="common/head :: htmlhead">
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">数据库备份</div>
                <div class="layui-card-body">
                    <button type="button" class="layui-btn"  onclick="sqlbf()">备份数据库</button>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['layer'],function () {
        var layer = layui.layer;
    });
    function sqlbf() {
        layer.confirm('确定备份数据库，此操作将引发大量数据处理！',{title: "提示"},function(index){
            layer.msg('备份成功！', {icon: 1});
            // location.reload();
        });
    }
</script>
</body>
</html>